package com.tedu.lingmaagent.controller;

import com.tedu.lingmaagent.domain.Appointment;
import com.tedu.lingmaagent.service.AppointmentService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name="医院模块")
@RestController
@RequestMapping("/hospital")

public class AppointmentController {
    @Autowired
    private AppointmentService appointmentService;

    @Operation(summary = "预约信息")
    @GetMapping("/appointments")
    public List<Appointment> appointments(){
        return appointmentService.list();
    }
}
